
<!DOCTYPE html>
<html lang="en">
<head>

    <title>修改题目的页面</title>
    <!-- 引入js文件 -->

    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/resources/bootstrap/css/bootstrap.min.css" />
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/resources/jquery/jquery-1.11.0.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/resources/jquery/jquery-migrate-1.2.1.min.js"></script>
    <!-- 导入bootStrap的库 -->
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/resources/bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/resources/easyUI/jquery.easyui.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/resources/easyUI/easyui-lang-zh_CN.js"></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/easyUI/easyui.css">
    <script type="text/javascript" src="${pageContext.request.contextPath}/resources/blockUI/jquery.blockUI.js"></script>

    <script>
        $(function () {
            //弹框提示信息
            if("${tip}"){
                $.messager.show({
                    title:'添加用户',
                    msg:"<span style='color:red;'>${tip}</span>",
                    showType:'slide'
                });
            }
        })
    </script>

</head>
<body>
<center>
<#--${tip}-->
    <form id="updateUserForm" action="/problem/updateProblem" method="post" enctype="multipart/form-data"><#--注意上传文件一定要enctype为“multipart/form-data”-->
        <!-- 当前用户的useId -->
        <input name="id" value="${problem.id}" type="hidden">
        <table class="table-condensed">
            <tbody>
            <tr>
                <td><label>ID:</label></td>
                <td><span class="label label-danger">${problem.id}</span></td>     <#--.label label-danger	"danger" 类型的红色标签-->
                <td><label>题型:</label></td>
                <#--<td><input id="type" name="type" value="${problem.type}" type="text" class="form-control" placeholder="请输入题目类型"></td>-->
                <td><select name="type">
                    <option value="作文" <#if problem.type="作文">selected</#if>>作文</option>
                    <option value="听A" <#if problem.type="听A">selected</#if>>听A</option>
                    <option value="听B" <#if problem.type="听B">selected</#if>>听B</option>
                    <option value="听C" <#if problem.type="听C">selected</#if>>听C</option>
                    <option value="选词" <#if problem.type="选词">selected</#if>>选词</option>
                    <option value="匹配" <#if problem.type="匹配">selected</#if>>匹配</option>
                    <option value="阅A" <#if problem.type="阅A">selected</#if>>阅A</option>
                    <option value="阅B" <#if problem.type="阅B">selected</#if>>阅B</option>
                    <option value="翻译" <#if problem.type="翻译">selected</#if>>翻译</option>
                </select>
                </td>

            </tr>
            <tr><td colspan="4" align="center"><label>题目</label></td></tr>
            <tr>
                <td colspan="4"><textarea id="question" name="question" wrap="hard" rows="10" cols="70">${problem.question}</textarea></td>

            </tr>

            <tr><td colspan="4" align="center"><label>选项</label></td></tr>
            <tr>
                <td colspan="4"><textarea id="options" name="options" wrap="hard" rows="10" cols="70">${problem.options}</textarea></td>
            </tr>
            </tr>
            <tr><td colspan="4" align="center"><label>答案</label></td></tr>
            <tr>
                <td colspan="4"><textarea id="answer" name="answer" wrap="hard" rows="10" cols="70">${problem.answer}</textarea></td>
            </tr>
            <tr>
                <td><label>分值:</label></td>
               <td><input id="score" name="score" value="${problem.score}" type="text" class="form-control" placeholder="请输入分值"></td>
            </tr>

            </tbody>
        </table>
        <input type="submit" class="btn btn-info" value="修改">

        <button type="reset" class="btn btn-danger">
            <span class="glyphicon glyphicon-remove"></span>&nbsp;重置
        </button>
        </div>
    </form>

</center>
</body>
</html>